#!/usr/bin/python
# coding=utf-8
'''
Created on 2011-12-12

@author: jiangxd
'''
from Tkinter import *

tk = Tk()
#tk.call('wm', 'iconbitmap', tk._w, './icon.ico')

tk.iconbitmap(bitmap='@/home/jiangxd/src/opensource/dict2trans/images/book.xbm')
tk.iconmask(bitmap='@/home/jiangxd/src/opensource/dict2trans/images/book.xbm')
#tk.iconbitmap('logo.xbm')
#tk.iconname('icon.ico')
#tk.iconwindow('icon.ico')
#tk.iconbitmap(default='@/home/jiangxd/src/opensource/dict2trans/icon.ico')
#Label(tk, image=bmp, text='This window now has a custom icon.').pack()
#
#t = Toplevel(tk)
#Label(t, text='This one has the same custom icon.').pack()
tk.mainloop()
